﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="facility"
    targetNamespace="http://tempuri.org/facility.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/facility.xsd"
    xmlns:mstns="http://tempuri.org/facility.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
    <xs:element name="FacilityList">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Facility" minOccurs="1" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="FacilityName" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
                            <xs:element name="Description" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
                            <xs:element name="ImageList" maxOccurs="1" minOccurs="0">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="Image" minOccurs="0" maxOccurs="unbounded">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="ImageUrl" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
                                                    <xs:element name="AltText" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
                                                    <xs:element name="ImageDesc" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
                                                </xs:sequence>
                                                <xs:attribute name="Width" type="xs:integer" use="optional" />
                                                <xs:attribute name="Height" type="xs:integer" use="optional"/>
                                            </xs:complexType>
                                            
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="Name" type="xs:string" />
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
